package com.xyoto.community.mapper.comment;

import com.xyoto.community.entity.comment.DynamicCommentReply;
import com.xyoto.community.entity.comment.QuestionCommentReply;
import com.xyoto.community.po.MessageQuestionCommentReplyPO;
import com.xyoto.community.po.MessageQuestionReplyPO;
import com.xyoto.community.po.QuestionCommentReplyPo;
import com.xyoto.community.vo.QuestionCommentReplyVo;

import java.util.List;

/**
 * ClassName:   问答评论回复mapper
 * Author:      挽风
 * Date:        2020
 * Copyright:   2020 by 挽风1.0版本
 * Description:
 **/
public interface QuestionCommentReplyMapper {

    /**
     * 根据问答评论id查询父级评论点赞数
     *
     * @param id 问答id
     *
     * @return 点赞数
     */
    List<QuestionCommentReplyPo> getQuestionCommentReplyList(Integer id);

    /**
     * 新增问答评论回复
     * @param reply
     * @return
     */
    Integer saveQuestionCommentReply(QuestionCommentReply reply);

    /**
     * 删除问答评论回复
     * @param questionCommentReply 实体
     * @return
     */
    Integer removeQuestionCommentReply(QuestionCommentReply questionCommentReply);

    /**
     * 根据id获取问答评论回复
     * @param questionCommentReplyId 问答评论id
     * @return
     */
    QuestionCommentReply getQuestionCommentReplyById(Integer questionCommentReplyId);

    /**
     * 根据问答评论id获取问答评论回复列表
     * @param questionCommentId 问答评论id
     * @return
     */
    List<Integer> getQuestionCommentReplyListByQuestionCommentId(Integer questionCommentId);


    /**
     * 获取问答评论回复的内容
     * @param moduleId 问答回复id
     * @return 回复内容
     */
    String getOneQuestionCommentReplyContentByQuestionCommentReplyId(Integer moduleId);


    /**
     * 获取问答回复的内容
     * @param questionCommentReplyIds 问答回复id
     * @return 回复内容
     */
    List<MessageQuestionReplyPO> getQuestionCommentReplyListByIds(List<Integer> questionCommentReplyIds);

    /**
     *获取问答回复的内容
     * @param messageQuestionCommentReplyIds 问答回复的id集合
     * @return 回复内容
     */
    List<MessageQuestionCommentReplyPO> getQuestionCommentReplyContentListByIds(List<Integer> messageQuestionCommentReplyIds);
}
